import request from '@/utils/request'

export default {
  // /infrastructure_Role/add
  // 新增
  save(data) {
    return request({
      url: `/infrastructure_Role/add`,
      method: 'post',
      data
    })
  },
  // /infrastructure_Role/index
  // 分页
  list(page) {
    return request({
      url: `/infrastructure_Role/index`,
      method: 'get',
      params: { pageIndex: page.index, pageSize: page.size }
    })
  },
  // /infrastructure_Role/deleteByIds
  // 根据id批量删除
  // /infrastructure_Role/delete/{id}
  // 根据id删除
  delete(id) {
    return request({
      url: `/infrastructure_Role/delete/${id}`,
      method: 'delete',
    })
  },
  getById(id) {
    return request({
      url: ``,
      method: 'get'
    })
  }

}
